<template>
    
</template>

<script>
import { mapState } from "vuex"
import cartHttp from "@/api/cart"

export default {
   
}
</script>

<style>
.empty {
    text-align: center;
    padding: 100px 0;
}

.empty > h2 {
    color: #b0b0b0;
    font-size: 36px;
}

.empty > button {
    margin: 20px;
}

.cart > .list {
    margin-top: 38px;
    background-color: #fff;
    font-weight: 400;
}

.cart > .list > .head,
.cart > .list > .body > .item {
    display: flex;
    align-items: center;
}

.cart > .list > .head {
    height: 70px;
}

.cart > .list > .body > .item {
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.cart > .list > .head > .check,
.cart > .list > .body > .item > .check {
    width: 110px;
    margin-left: 24px;
}

.cart > .list > .head > .img,
.cart > .list > .body > .item > .img {
    width: 120px;
}

.cart > .list > .body > .item > .img > img {
    width: 80px;
    height: 80px;
}

.cart > .list > .head > .name,
.cart > .list > .body > .item > .name {
    width: 380px;
}

.cart > .list > .body > .item > .name h3 {
    color: #424242;
    font-size: 18px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: color .3s;
}

.cart > .list > .body > .item > .name h3:hover {
    color: #ff6700;
}

.cart > .list > .head > .price,
.cart > .list > .body > .item > .price,
.cart > .list > .head > .num,
.cart > .list > .body > .item > .num,
.cart > .list > .head > .total,
.cart > .list > .body > .item > .total {
    text-align: center;
}

.cart > .list > .head > .price,
.cart > .list > .body > .item > .price {
    width: 158px;
}

.cart > .list > .body > .item > .price {
    font-size: 16px;
}

.cart > .list > .head > .num,
.cart > .list > .body > .item > .num {
    width: 150px;
}

.cart > .list > .head > .total,
.cart > .list > .body > .item > .total {
    width: 200px;
}

.cart > .list > .body > .item > .total {
    color: #ff6700;
    font-size: 16px;
}

.cart > .list > .head > .action,
.cart > .list > .body > .item > .action {
    width: 80px;
}

.cart > .list > .body > .item > .action {
    cursor: pointer;
}

.cart > .list > .body > .item > .action > span {
    display: block;
    font-size: 18px;
    width: 24px;
    height: 24px;
    line-height: 23px;
    text-align: center;
    border-radius: 50%;
    background-color: transparent;
    transition: all .3s;
}

.cart > .list > .body > .item > .action > span:hover {
    background-color: #ff6700;
    color: #fff;
}

.cart > .footer {
    margin: 20px 0;
    height: 50px;
    background-color: #fff;
    display: flex;
    align-items: center;
    position: relative;
}

.cart > .footer > .total {
    margin-left: 28px;
    color: #757575;
}

.cart > .footer > .total > i {
    font-style: normal;
    color: #ff6700;
}

.cart > .footer > .total-price {
    position: absolute;
    right: 0;
    color: #ff6700;
}

.cart > .footer > .total-price > em {
    font-size: 30px;
    font-style: normal;
}

.cart > .footer > .total-price > button {
    margin-left: 50px;
}
</style>